package com.westvalley.service.api.nc;

import java.util.Map;

import com.google.common.collect.Maps;
import com.jfinal.core.Controller;
import com.westvalley.common.kit.StringKit;

public class HistoryLoanService extends NcService{
	public static final String KEY = "history_loan";
	public static final JsonType jsonType = JsonType.arr;
	private Controller ctrl;
	
	public static HistoryLoanService me(Controller ctrl){
		return new HistoryLoanService(ctrl);
	}
	
	private HistoryLoanService(Controller ctrl){
		super(KEY,jsonType);
		this.ctrl = ctrl;
	}
	

	@Override
	protected Map<String, Object> initParams() {
		Map<String, Object> params = Maps.newHashMap();
		params.put("psncode", StringKit.null2Str(this.ctrl.getPara("psncode")));
		params.put("unitcode", StringKit.null2Str(this.ctrl.getPara("unitcode")));
		return params;
	}

}
